<?php
session_start();
$y=0;
//var_dump($_SESSION['cart']);
foreach($_POST['quantity'] as $qty)
{
echo $qty.'<br>';
$_SESSION['cart'][$y]['qty']=$qty;
$y++;
}

?>
